package com.zhuanzhuan.hero.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;

/**
 * @ClassName UserLabelServiceImpl
 * @Description
 * @Author hanjunjun
 * @Date 2024/6/24 14:36
 */
@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true)
@ComponentScan(basePackages = {"com.bj58.zhuanzhuan", "com.zhuanzhuan.hunter", "com.zhuanzhuan.youpin",  "com.zhuanzhuan.hero"}, excludeFilters = {
    @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {
        com.zhuanzhuan.youpin.exceptions.spring.ServiceBehaviorAspect.class
    })
})
@ImportResource("classpath:spring-context.xml")
@MapperScan("com.zhuanzhuan.**.mapper")
public class Boot {

    public static void main(String[] args) {
        new SpringApplicationBuilder().sources(Boot.class).web(WebApplicationType.NONE).run(args);
    }
}